.image-generator {
  height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-size: cover;
  background-position: center;
}

.image-generator .content {
  position: relative;
  color: #fff;
  padding: 0 15px;
  max-width: 560px;
  text-align: center;
  text-shadow: 0 0 5px rgba(0, 0, 0, 1);

}

.image-generator h2 {
  font-size: 1rem;
  margin-top: 15px;
  font-weight: 300;
}

.image-generator p {
  margin-top: 10px;
  font-size: 1.35rem;
}

.image-generator p1 {
  font-size: 17px;
  text-shadow: 0 0 5px rgb(0, 119, 230, 1);
}

.image-generator p2 {
  font-size: 17px;
  font-family: 'Varino';
  text-shadow: 0 0 5px rgb(0, 119, 230, 1);
}

.image-generator .generate-form {
  height: 55px;
  padding: 6px;
  display: flex;
  margin-bottom: 15px;
  background: #fff;
  align-items: center;
  border-radius: 10px;
  margin-top: 45px;
  justify-content: space-between;
  max-width: 1000px; /* set the max-width to a larger value */
  margin-left: -150px; /* center the form horizontally */
  margin-right: -150px; /* center the form horizontally */
  box-shadow: 0 0 15px rgb(0, 0, 0);
}

.generate-form .prompt-input {
  width: 100%;
  height: 100%;
  outline: none;
  padding: 0 17px;
  border: none;
  background: none;
  font-size: 1rem;
}

.generate-form .controls {
  display: flex;
  height: 100%;
  gap: 5px;
}

.generate-form {
  height: 56px;
  padding: 6px;
  display: flex;
  margin-bottom: 15px;
  background: #fff;
  margin-top: 45px;
  justify-content: space-between;
  align-items: center;
}

.generate-form .generate-btn {
  font-size: 0.8rem;
  outline: none;
  border: none;
  font-weight: 300;
  color: #fff;
  cursor: pointer;
  height: 100%;
  width: 120px;
  text-align: center;
  border-radius: 5px;
  background-color: #666edf;
  box-shadow: 0 0 10px rgb(0, 0, 0, 1);
  transition: transform 0.3s, opacity 0.5s;
}

.generate-form .img-quantity {
  font-size: 0.8rem;
  outline: none;
  border: none;
  font-weight: 300;
  color: #fff;
  cursor: pointer;
  height: 100%;
  width: 150px;
  text-align: center;
  border-radius: 5px;
  background-color: #666edf;
  box-shadow: 0 0 10px rgb(0, 0, 0, 1);
  transition: transform 0.3s, opacity 0.5s;
}

.generate-form button:hover {
  background-color: #0b70f5;
}

.generate-form select:hover {
  background-color: #0b70f5;
}

.generate-form .generate-btn[disabled] {
  opacity: 0.6;
  pointer-events: blocked;
  cursor: not-allowed;
}

.generate-form .img-quantity[disabled] {
  opacity: 0.6;
  pointer-events: blocked;
  cursor: not-allowed;
}

.image-gallery {
  display: flex;
  gap: 15px;
  padding: 0 20px;
  flex-wrap: unset;
  justify-content: center;
}

.image-gallery .img-card {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  background: #202020;
  border-radius: 10px;
  width: 450px;
  height: 320px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 1);
  margin: 50px auto;
}

.image-gallery .img-card img {
  height: 100%;
  object-fit: cover;
}

.image-gallery .img-card.loading img {
  width: 100px;
  height: 100px;
}

.image-gallery .img-card .download-btn {
  bottom: 15px;
  right: 15px;
  height: 36px;
  width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
}

.image-gallery .img-card .download-btn img {
  width: 20px;
  height: 20px;
}

.image-gallery .img-card:not(.loading):hover .download-btn {
  opacity: 1;
  pointer-events: auto;
}

@media screen and (max-width: 760px) {
  .image-generator {
    height: 45vh;
    padding-top: 30px;
    align-items: flex-start;
  }

  .image-generator h1 {
    font-size: 1.8rem;
  }

  .image-generator p {
    font-size: 1rem;
  }

  .image-generator .generate-form {
    margin-top: 30px;
    height: 52px;
    display: block;
  }

  .generate-form .controls {
    height: 40px;
    margin-top: 15px;
    color: #000;
    justify-content: end;
    align-items: center;
  }

  .generate-form .generate-btn[disabled] {
    opacity: 1;
  }

  .generate-form .img-quantity {
    color: #fff;
  }

  .generate-form .img-quantity option {
    color: #000;
  }

  .image-gallery {
    margin-top: 20px;
  }

  .image-gallery .img-card:not(.loading) .download-btn {
    opacity: 1;
    pointer-events: auto;
  }
}

@media screen and (max-width: 500px) {
  .image-gallery .img-card {
    width: 100%;
  }
}

.Imagebeta {
  text-shadow: 0 0 5px rgb(255, 255, 255, 1);
  font-size: 45px;
  color: rgb(255, 255, 255);
  background: linear-gradient(to right, #4285f4, #d96570);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  font-family: 'Resistance';
  transform: translateX(-50%);
}